MPHB\Core\BookingRulesData D

Total Complexity 199
Dependencies 2
Dependents 1
Total lines 899
Lines of code 480
Logical lines of code 252
Comment lines 165
Methods 21
Properties 15

Methods 21

Method Rating Maintainability Complexity Lines of code
getBookingRulesForDate()
D
25
62 128
__construct()
D
30 36 102
getUnavailableRoomIds()
A
48 15 29
getNotStayInComments()
A
45 13 40
getNotStayInRulesData()
A
52 8 22
getBlockedRoomsCountForRoomType()
A
55 8 19
isBookingRulesViolated()
S
64 7 9
isStayInNotAllowed()
S
58 5 15
isCheckInNotAllowed()
S
63 5 10
isCheckOutNotAllowed()
S
63 5 10
getMinStayNightsCountForAllSeasons()
S
60 4 13
isMaxStayNightsRuleViolated()
S
63 4 11
isCheckInLaterThanMaxAdvanceDate()
S
63 4 11
getMaxAdvanceReservationDaysCount()
S
66 3 8
isMinStayNightsRuleViolated()
S
66 3 9
getMinStayNightsCount()
S
66 3 8
getBufferDaysCount()
S
66 3 8
getMinAdvanceReservationDaysCount()
S
66 3 8
isCheckInEarlierThanMinAdvanceDate()
S
66 3 9
getMaxStayNightsCount()
S
66 3 8
hasBufferDaysRules()
S
80 2 3